﻿using Microsoft.AspNetCore.Mvc.Rendering;
using System.Collections.Generic;

namespace HCMS.Dictionary
{
    /// <summary>
    /// 公共字典类
    /// </summary>
    public class DictCommon
    {
        /// <summary>
        /// 数据 状态
        /// </summary>
        /// <returns></returns>
        public IEnumerable<SelectListItem> StatusItems()
        {
            return new List<SelectListItem>() {
                new SelectListItem{ Value = "0",    Text = "正常" },
                new SelectListItem{ Value = "-1",   Text = "删除" }
            };
        }

        /// <summary>
        /// 管理员 数据 状态
        /// </summary>
        /// <returns></returns>
        public IEnumerable<SelectListItem> AdminStatusItems()
        {
            return new List<SelectListItem>() {
                new SelectListItem{ Value = "0", Text = "在职" },
                new SelectListItem{ Value = "-1", Text = "离职" },
                new SelectListItem{ Value = "-2", Text = "休假" }
            };
        }

        /// <summary>
        /// 管理员 是否可以查看 Api 文档
        /// </summary>
        /// <returns></returns>
        public IEnumerable<SelectListItem> AdminUseApiDoc()
        {
            return new List<SelectListItem>() {
                new SelectListItem{ Value = "false", Text = "不允许" },
                new SelectListItem{ Value = "true", Text = "允许" }
            };
        }

        /// <summary>
        /// 管理系统 菜单 类型
        /// </summary>
        /// <returns></returns>
        public IEnumerable<SelectListItem> MenuTypeItems()
        {
            return new List<SelectListItem>() {
                new SelectListItem{ Value = "1", Text = "菜单" },
                new SelectListItem{ Value = "2", Text = "列表" },
                new SelectListItem{ Value = "3", Text = "按钮" }
            };
        }

        /// <summary>
        /// 公告 系统 类型
        /// </summary>
        /// <returns></returns>
        public IEnumerable<SelectListItem> NoticeTypeItems()
        {
            return new List<SelectListItem>() {
                new SelectListItem{ Value = "1", Text = "系统公告" },
                new SelectListItem{ Value = "2", Text = "公司通知" }
            };
        }

        /// <summary>
        /// 敏感词 类型
        /// </summary>
        /// <returns></returns>
        public IEnumerable<SelectListItem> SensitiveWordsClassItems()
        {
            return new List<SelectListItem>() {
                new SelectListItem{ Value = "1", Text = "极限" },
                new SelectListItem{ Value = "2", Text = "违禁" },
                new SelectListItem{ Value = "3", Text = "涉政" },
                new SelectListItem{ Value = "4", Text = "反动" },
                new SelectListItem{ Value = "5", Text = "其它" }
            };
        }
    }
}
